package
{
	import flash.display.BitmapData;
	import flash.display.MovieClip;
	
	import flash.geom.Rectangle;
	
	import flashx.textLayout.formats.BackgroundColor;

	public class State
	{
		
		
		public var stateIndex:uint;
		public function State()
		{
		}
		
		public function Render(g:MyGraphics):void
		{
			
		}
		public function Update(dt:int):void
		{
			
		}
		public function Init():void
		{
			
		}
		public function Release():void
		{
			
		}
		public function MouseClick(x:int, y:int):void
		{
			
		}
		public function MouseDown(x:int, y:int):void
		{
			CTouchInterfaceManager.tp_old_pos.x = CTouchInterfaceManager.tp_pos.x;
			CTouchInterfaceManager.tp_old_pos.y = CTouchInterfaceManager.tp_pos.y;
			CTouchInterfaceManager.tp_old_type = CTouchInterfaceManager.tp_type;
			
			CTouchInterfaceManager.tp_pos.x = x;
			CTouchInterfaceManager.tp_pos.y = y;			
			CTouchInterfaceManager.tp_type = CTouchInterfaceManager.TP_TOUCH_ON;
		}
		public function MouseUp(x:int, y:int):void
		{
			CTouchInterfaceManager.tp_old_type = CTouchInterfaceManager.tp_type;
			CTouchInterfaceManager.tp_type = CTouchInterfaceManager.TP_TOUCH_OFF;
		}
		public function MouseMove(x:int, y:int, buttonDown:Boolean):void
		{
			
		}
		public function KeyDown(keyCode:uint):void
		{
			
		}
		public function ReceiveMessage(mess:String,param:Array,sender:MovieClip):void
		{
			
		}
		public function LoadComplete(success:Boolean, description:String):void
		{
			
		}
		public function GetStateName():String
		{
			return "State";
		}
	}
}